package com.niit.schoolhub.system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 轻量博客-文件
 * </p>
 *
 * @author kaguya
 * @since 2021-11-27
 */
@TableName("yesapi_one_medias")
@ApiModel(value = "YesapiOneMedias对象", description = "轻量博客-文件")
public class YesapiOneMedias implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("文件地址")
    private String url;

    @ApiModelProperty("文件名称")
    private String yesapiOneMediasName;

    @ApiModelProperty("文件类型")
    private String yesapiOneMediasType;

    @ApiModelProperty("文件大小")
    private Float size;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getYesapiOneMediasName() {
        return yesapiOneMediasName;
    }

    public void setYesapiOneMediasName(String yesapiOneMediasName) {
        this.yesapiOneMediasName = yesapiOneMediasName;
    }

    public String getYesapiOneMediasType() {
        return yesapiOneMediasType;
    }

    public void setYesapiOneMediasType(String yesapiOneMediasType) {
        this.yesapiOneMediasType = yesapiOneMediasType;
    }

    public Float getSize() {
        return size;
    }

    public void setSize(Float size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "YesapiOneMedias{" +
        "id=" + id +
        ", url=" + url +
        ", yesapiOneMediasName=" + yesapiOneMediasName +
        ", yesapiOneMediasType=" + yesapiOneMediasType +
        ", size=" + size +
        "}";
    }
}
